home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / e_os300b / wc_fli / test.c < prev   
Encoding:
C/C++ Source or Header  |  1996-12-09  |  1.1 KB  |  35 lines

  1. //╔══════════════════════════════════════════════════════════════════════════╗
  2. //║                                                                          ║
  3. //║ This example show how to use FLI32 library with Watcom C                 ║
  4. //║                                                                          ║
  5. //║                                                                          ║
  6. //║                                                                          ║
  7. //╚══════════════════════════════════════════════════════════════════════════╝
  8.  
  9. #include <stdlib.h>
  10. #include "..\resource\eos.h"
  11. #include <process.h>
  12.  
  13. char *Set_Video_Mode(long video_mode);
  14. #pragma aux Set_Video_Mode parm [eax] modify [eax] value [eax] = \
  15.   "int 10h" \
  16.   "mov eax,0a0000h";
  17.  
  18. void main(int argn, char **argv)
  19. {
  20.     Init_EOS();
  21.  
  22.     Fli_Selector=Allocate_Selector(Set_Video_Mode(0x13),0x0f);
  23.  
  24.     if (Load_Fli("..//data//test.flc")==NULL)
  25.        Exit_Error ("    ■ File not found !\x0D\x0A\x24");
  26.  
  27.       First_Frame_Fli();
  28.       while ( !kbhit() )
  29.       {
  30.         Wait_Vbl();
  31.         Next_Frame_Fli();
  32.       }
  33.       Dispose_Fli();
  34.   exit (0);
  35. }